#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class Teacher : Business.BusinessBase<Teacher, int>
	{
		#region Fields and Properties

		private String pic = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Pic
		{
			get { return pic; }
			set
			{
				if (value != pic)
				{
					MarkChanged("Pic");
					pic = value;
				}
			}
		}

		private String record = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Record
		{
			get { return record; }
			set
			{
				if (value != record)
				{
					MarkChanged("Record");
					record = value;
				}
			}
		}

		private String degree = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Degree
		{
			get { return degree; }
			set
			{
				if (value != degree)
				{
					MarkChanged("Degree");
					degree = value;
				}
			}
		}

		private Decimal salary = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal Salary
		{
			get { return salary; }
			set
			{
				if (value != salary)
				{
					MarkChanged("Salary");
					salary = value;
				}
			}
		}

		private Byte age = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte Age
		{
			get { return age; }
			set
			{
				if (value != age)
				{
					MarkChanged("Age");
					age = value;
				}
			}
		}

		private String catetoryCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CatetoryCode
		{
			get { return catetoryCode; }
			set
			{
				if (value != catetoryCode)
				{
					MarkChanged("CatetoryCode");
					catetoryCode = value;
				}
			}
		}

		private Byte gender = 0;
		/// <summary>
		/// 
		/// </summary>
		public Byte Gender
		{
			get { return gender; }
			set
			{
				if (value != gender)
				{
					MarkChanged("Gender");
					gender = value;
				}
			}
		}

		private String name = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Name
		{
			get { return name; }
			set
			{
				if (value != name)
				{
					MarkChanged("Name");
					name = value;
				}
			}
		}

		private String code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Code
		{
			get { return code; }
			set
			{
				if (value != code)
				{
					MarkChanged("Code");
					code = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public Teacher()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override Teacher DataSelect(int id)
		{
			return Services.DALService.TeacherService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TeacherService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TeacherService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TeacherService.Delete(this);
		}

		#endregion Base overrides
	}
}
